<?php

$zb = '主板';
$xk = '显卡';
$yp = '硬盘';

$gd = '广东';
$sh = '上海';
$bj = '北京';

$zbgeshu = 3;
$xkgeshu = 2;
$ypgeshu = 5;

$zb_price = 379;
$xk_price = 799;
$yp_price = 589;

$zbzongjia = $zbgeshu * $zb_price;
$xkzongjia = $xkgeshu * $xk_price;
$ypzongjia = $ypgeshu * $yp_price;

$total = $zbzongjia + $xkzongjia + $ypzongjia;
echo "
<html lang='en'>
<head>
    <title>第二个PHP程序</title>
</head>
<body>
<p>商品名称 | 单价（元） | 产地 | 数量（个） | 总价（元）</p>
<p>$zb | $zb_price | $gd | $zbgeshu | $zbzongjia</p>
<p>$xk | $xk_price | $sh | $xkgeshu | $xkzongjia</p>
<p>$yp | $yp_price | $bj | $ypgeshu | $ypzongjia</p>

<p>小计：$total</p>

</body>
</html>";
